package com.cskaoyan.controller.user;

import com.cskaoyan.model.vo.BaseRespVo;
import com.cskaoyan.model.vo.user.RegionVo;
import com.cskaoyan.service.user.RegionService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: project-market
 * @description:
 * @author: zhijie
 * @create: 2021-12-01 11:27
 **/
@RestController
@RequestMapping("admin/region")
public class RegionController {
    @Autowired
    RegionService regionService;
    /**
     * 行政区域
     *
     * @return
     */

    @GetMapping("list")
    public BaseRespVo regionList() {
      RegionVo data =regionService.regionList();
        return BaseRespVo.ok(data);
    }
}
